<?
	require_once('../fun/accounts.php');
	require_once('../fun/sources.php');
	//RequireLogin();
	$results = GetSources();
	$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
	switch($action){
		case 'POST':
			break;
		default: //	GET - Index & Details
			$arr = array();
			while($row = $results->fetch_assoc())
				$arr[] = $row;
				echo json_encode(array('aaData' => $arr));
			break;
	}